var express = require('express');
var path = require('path');
var app = express();
var router = require("./routers/index");
app.use(express.static(path.join(__dirname, 'public')));

app.set('views', path.join(__dirname, 'view'));
app.set('view engine', 'ejs');
//
app.use("/",router);

//404错误
/*app.use(function(req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});*/
app.listen(80);
